package com.kingsoft.dc.khaos.module.spark.constants;

public class TechCheckConst {
    public static final String DEFAULT_CHECK_SPLITER = "|@|";

    //技术检核错误登记
    public enum ErrorLever {
        FAIL("fail"),
        REJECT("reject"),
        WARN("warn");
        ErrorLever(String lever){
            this.lever = lever;
        }
        final public String lever;
    }
    //检核文件类型
    public enum  FileType {
        DDL("ddl","ddl"),
        XML("xml","ctrl"),
        DATA("dat","data");
        FileType(String typ, String dir) {
            this.typ = typ;
            this.dir = dir;
        }
        final public String typ;
        final public String dir;
    }
    //分隔符类型
    public enum SpliterType {
        FixedLength("|@|",0),//不定长分隔符
        FreeLength("|",1);//定长分隔符
        SpliterType(String spliter, Integer code){
            this.spliter = spliter;
            this.code = code;
        }
        final public String spliter;
        final public Integer code;
    }
}
